<%--
  Created by IntelliJ IDEA.
  systemParam: lichengming
  Date: 2017/6/15
  Time: 下午12:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>


<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>参数管理</title>

    <script type="text/javascript">
        function shopSortSave() {
            var result = false;
            $.emsAjax({
                url:"/ems/shopsort/save",
                data:{
                    id:"${shopSort.id_}",
                    isShow:$("#isShow").val(),
                    name:$("#name").val()

                },
                success:function(resp) {
                    if (resp.status == "000") {
                        result = true;
                        $.alert(resp.message);
                    }else $.errorAlert(resp.message);
                }
            });
            return result;
        }

        var isShow = '${shopSort.is_show_}';
        if(isShow != ''){
            $("#isShow").val(isShow);
        }

    </script>
</head>
<body>
<form class="form-horizontal">

    <div class="form-group">
        <label for="name" class="col-sm-4 control-label">商家分类名称：</label>
        <div class="col-sm-8">
            <input type="text" class="form-control"
                   id="name" value="${shopSort.name_}" placeholder="商家分类名称" />
        </div>
    </div>

    <div class="form-group">
        <label for="isShow" class="col-sm-4 control-label">商家类型：</label>
        <div class="col-sm-8">
            <select class="form-control" id="isShow" name="isShow">
                <option value="oto">线下商家类型</option>
                <option value="online_store">线上商家类型</option>
            </select>
        </div>
    </div>


</form>
</body>
</html>